import request from '@/utils/request'

/**
 * 查询各种状态
 */
export const selectBatStatus = (param) => {
	return request({
		url: '/QH/BatData/selectBatStatus?token=' + window.localStorage.getItem('goods__token'),
		method: 'post',
		params: param
	});

}
/**
 * 查询各省市数量
 */
export const selectLoca = (param) => {
	return request({
		url: '/QH/Gps/selectLocationBatNum?token=' + window.localStorage.getItem('goods__token'),
		method: 'post',
		params: param
	});

}
/**
 * 查询各省市换电站数量
 */
export const selectLocationPsNum = (param) => {
	return request({
		url: '/QH/Gps/selectLocationPsNum?token=' + window.localStorage.getItem('goods__token'),
		method: 'post',
		params: param
	});

}
/**
 * 查询区域电池位置信息
 */
export const selectbatgps = (param) => {
	return request({
		url: '/QH/Gps/selectBatGps?token=' + window.localStorage.getItem('goods__token'),
		method: 'post',
		params: param
	});

}

/**
 * 查询换电站信息
 */
export const getPowerStationData = (param) => {
	return request({
		url: '/QH/PowerStation/getPowerStationData?token=' + window.localStorage.getItem('goods__token'),
		method: 'post',
		data: param
	});

}
/**
 * 查询换电站信息
 */
export const getPowerStationDataSingle = () => {
	let param = {
		"requestId": 0,
		"stationId": "PS000001",
		"taskId": "",
		"userId": ""
	}
	return request({
		url: '/QH/PowerStation/getPowerStationDataSingle?token=' + window.localStorage.getItem(
			'goods__token'),
		method: 'post',
		data: param
	});

}
/**
 * 获取发电量
 */
export const getPowerRecord = (param) => {
	return request({
		url: '/QH/PowerStation/getPowerRecord?token=' + window.localStorage.getItem(
			'goods__token'),
		method: 'post',
		data: param
	});
}
